package com.iot.mapper;

import com.iot.pojo.MTmenu;
import com.iot.pojo.MTrole;
import com.iot.pojo.MTrole_authority;

import java.util.List;
import java.util.Map;

public interface DTmenuMapper {

    List<Map<String, String>> getAuthorityByUserId(Integer userId);


    List<MTmenu> fetchByPage(Map<String, Object> map);


    List<Map<String, String>> getAuthorityByRoleIdList(int roleId);

    void delAuthByRoldId(int roleId);

    public Integer insertAuth(List<MTrole_authority> list) ;
}
